package auto.app.controller.from;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("新增测试用例")
public class CaseAddFrom {

    /**
     * 接口id
     */
    @NotNull(message = "接口id不能为空")
    @ApiModelProperty("接口ID")
    private Integer interfaceId;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    private String remark;

    /**
     * 用例名称
     */
    @NotEmpty(message = "用例名称不能为空")
    @ApiModelProperty("用例名称")
    private String caseName;
}
